.video-detail-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Arial', sans-serif;
}

.video-player-wrapper {
  width: 100%;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-radius: 8px;
  overflow: hidden;
  background-color: #000;
}

.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
}

.video-player {
  width: 100%;
  height: 100%;
  background: #000;
}

.danmaku-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80%;
  pointer-events: none;
  overflow: hidden;
}

.danmaku {
  position: absolute;
  white-space: nowrap;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
  animation-timing-function: linear;
  will-change: transform;
}

.danmaku-input-container {
  display: flex;
  padding: 10px;
  background-color: #000;
}

.danmaku-input {
  flex: 1;
  padding: 8px 12px;
  border: none;
  border-radius: 4px 0 0 4px;
  font-size: 14px;
}

.send-danmaku {
  padding: 0 20px;
  background: #FF0000;
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-weight: bold;
}

.video-info {
  padding: 15px;
  background-color: #fff;
}

.video-title {
  font-size: 22px;
  margin: 0 0 15px;
  color: #333;
  font-weight: bold;
}

.video-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  color: #666;
  font-size: 14px;
}

.video-views,
.video-publish-date {
  display: flex;
  align-items: center;
}

.like-button {
  padding: 6px 12px;
  background: none;
  border: 1px solid #FF0000;
  color: #FF0000;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.like-button.liked {
  background: #FF0000;
  color: white;
}

.video-description {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
  color: #333;
  line-height: 1.6;
}

.content-container {
  display: flex;
  gap: 20px;
}

.comments-section {
  flex: 2;
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.related-uploads {
  flex: 1;
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.comment-input-container {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}

.comment-input {
  flex: 1;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.send-comment {
  padding: 0 20px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.comment-item {
  display: flex;
  gap: 10px;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-content {
  flex: 1;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.comment-user {
  font-weight: bold;
  color: #333;
}

.comment-time {
  color: #999;
  font-size: 12px;
}

.comment-text {
  color: #333;
  line-height: 1.5;
}

.related-uploads-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.related-video-item {
  display: flex;
  gap: 10px;
  cursor: pointer;
}

.related-video-cover {
  width: 120px;
  height: 67px;
  object-fit: cover;
  border-radius: 4px;
}

.related-video-info {
  flex: 1;
  min-width: 0;
}

.related-video-title {
  font-size: 14px;
  margin-bottom: 5px;
  color: #333;
  font-weight: 500;
  display: -webkit-box;
  webkit-line-clamp: 2;
  webkit-box-orient: vertical;
  overflow: hidden;
}

.related-video-meta {
  font-size: 12px;
  color: #999;
}

.loading-state, .error-state, .not-found-state {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  color: #666;
  background-color: #fff;
}

/* 适配移动设备 */
@media (max-width: 768px) {
  .content-container {
    flex-direction: column;
  }

  .related-uploads-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}